package chp11;

import java.util.Scanner;

public class Person {

    String name;

    int score;

    Scanner input = new Scanner(System.in);

    public void init(){
        System.out.print("请输入你的名字:");
        name = input.next();
    }

    public int showFist(){
        System.out.print("请出拳:1.剪刀 2.石头 3.布(输入相应数字):");
        int myFist = input.nextInt();

        switch (myFist) {
            case 1:
                System.out.println(name + " 出拳:剪刀");
                break;
            case 2:
                System.out.println(name + " 出拳:石头");
                break;
            case 3:
                System.out.println(name + " 出拳:布");
                break;
        }
        return myFist;
    }
}
